import Vue from 'vue';
import App from './App.vue';
import ElementUI from "element-ui"
import { InfiniteScroll } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import {natsClient} from "@/utils/nats_client";
import router from "@/router/index";
import { library } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
// 引入所有实心图标
import { fas } from '@fortawesome/free-solid-svg-icons';
import {uuid} from "@/utils/uuid";



// 将所有图标添加到库中
library.add(fas);

// 注册 FontAwesomeIcon 组件
Vue.component('font-awesome-icon', FontAwesomeIcon);
Vue.prototype.$uuid = uuid


Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(InfiniteScroll);
Vue.prototype.$natsClient = natsClient;

new Vue({
  render: h => h(App),
  router
}).$mount('#app');